package AST;
import java.util.List;
import java.util.ArrayList;

import Visitors.IVisitee;
import Visitors.IVisitor;

public class ASTSequence implements ASTIExpression,IVisitee {
	public ASTSequence() {
		_commands = new ArrayList<ASTCommand>();
	}
	
	@Override
	public void Accept(IVisitor visitor) {
		visitor.visit(this);
	}
	
	public void addCommand(ASTCommand command)
	{
		_commands.add(command);
	}
	
	public List<ASTCommand> getCommands()
	{
		return _commands;
	}
	
	private List<ASTCommand> _commands;
	
}
